#!/usr/bin/env node

const Radio = require('./03-radio.js'),
      log = console.log;

const station = {
  freq:'102.4',
  name:'music radio'
};

let radio = new Radio(station);

radio.on('open',(station)=>{
  log('%s FM %s opened',station.name,station.freq);
});

radio.on('stop',(station)=>{
  log('%s FM %s closed',station.name,station.freq);
});



